package dryven.config.xml;

import org.xml.sax.Attributes;

import dryven.config.xml.jdbctags.MySqlConfigurationElement;

public abstract class AbstractJdbcConfigurationElement {
	public String getElementName() {
		String name = getClass().getSimpleName();
		if(name.endsWith("ConfigurationElement")) {
			name = name.substring(0, name.length()-"ConfigurationElement".length());
		}
		return name.toLowerCase();
	}
	
	public abstract MemoryDatabaseConfiguration readConnection(Attributes elementAttributes);
}
